package com.br.gapps.crm.entity;

import java.io.Serializable;
import java.lang.Integer;
import java.util.Date;

import javax.persistence.*;

/**
 * Entity implementation class for Entity: SalesPurchase
 *
 */
@Entity

public class SalesPurchase implements Serializable {

	   
	@Id
	private Integer cdpurchase;
	@Temporal(TemporalType.DATE)
	private Date dtpurchase;
	@ManyToOne(optional=false)
	private Customer customer;
	
	private static final long serialVersionUID = 1L;

	public SalesPurchase() {
		super();
	}   
	public Integer getCdpurchase() {
		return this.cdpurchase;
	}

	public void setCdpurchase(Integer cdpurchase) {
		this.cdpurchase = cdpurchase;
	}
	public Date getDtpurchase() {
		return dtpurchase;
	}
	public void setDtpurchase(Date dtpurchase) {
		this.dtpurchase = dtpurchase;
	}
	public Customer getCustomer() {
		return customer;
	}
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
   
}
